﻿using Microsoft.VisualStudio.TestTools.UITest.Common;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
using System;

[assembly: UITestExtensionPackage("AX Extension",
	typeof(AXExtension.AXExtension))]

namespace AXExtension
{
	/// <summary>
	/// Presents information about the extension and
	/// UITestActionFilter instances to the CUIT
	/// recorder.
	/// </summary>
	class AXExtension : UITestExtensionPackage
	{
		public override void Dispose()
		{
		}

		public override object GetService(Type serviceType)
		{
			if (serviceType == typeof(UITestActionFilter))
			{
				return actionFilter;
			}
			return null;
		}

		public override string PackageDescription
		{
			get { return "Fixes a wide array of difficulties CUITs have when interacting with the AX UI."; }
		}

		public override string PackageName
		{
			get { return "AX Extension"; }
		}

		public override string PackageVendor
		{
			get { return "Microsoft Corporation"; }
		}

		public override Version PackageVersion
		{
			get { return new Version(1, 0); }
		}

		public override Version VSVersion
		{
			get { return new Version(13, 0); }
		}

		private AXActionFilter actionFilter = new AXActionFilter();
	}
}
